<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/
?>
<div align="center" class="wiki_main">

    <div class="wiki_shadow">

	<?include("menu.php");?>
    
        <div class="wiki_white" align="left">
    
            <div class="wiki_header">

		<?
		include("functions.php");
		?>
                
                <div class="wiki_title_padding" align="left"> 
                    <table border="0" cellpadding="0" cellspacing="0"><tr><td nowrap>
		    
		    <span class="wiki_prefix">
			<?=$displayParams["sPrefix"];?>
		    </span>


		    <span class="wiki_title">
			<?
			switch ($displayParams["nStale"])
			{
			    case 1:
				echo "<img src=\"".THEME_DIR."/images/fresh.gif\">";
				break;

			    case 2:
				echo "<img src=\"".THEME_DIR."/images/medium.gif\">";
				break;

			    case 3:
				echo "<img src=\"".THEME_DIR."/images/stale.gif\">";
				break;
			}
			?>


			    
			<?=$displayParams["sPageTitle"];?>
		    </span>
		    </td></tr></table>		
                </div>

		<?

		    
		if ($displayParams["bShowModified"])
		{
		    ?>
		    <div align="left" class="smallfont">
			Modified: <?=$displayParams["aLastModified"]["sTime"];?>  (<?=$displayParams["aLastModified"]["sAuthor"];?>)
		    </div>
		    <?
		}
		
		?>

            </div>
    

    
	    <?
		switch ($displayParams["sPageType"])
		{
		    case "view":
			$sClass="wiki_content";			
			include "view.php";
			break;
		
		    case "edit":
			$sClass="wiki_content";	
			include "edit.php";
			break;
		    
		    case "search":
			include "search.php";
			break;
		    
		    case "simpleform":
			include "simpleform.php";
			break;
		    
		    default:
			include "default.php";
			
		}
	?>
	</div>
    </div>

    <?
    include("links.php");
    ?>



</body>
</html>
